/**
 * 
 */
package com.sc.softmgr.business.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.acc.softmgr.model.SoftmgrCategory;
import com.alibaba.fastjson.JSONObject;
import com.sc.softmgr.business.service.fallback.SoftmgrCategoryFallback;
import com.sc.softmgr.common.web.DataGridObject;

/**
 * 
 * @content
 * 
 * @date 2017年6月12日
 * 
 * @author OprCalf
 * 
 */
@FeignClient(value = "SOFTMGR-CATEGORY1", fallback = SoftmgrCategoryFallback.class)
public interface ISoftmgrCategoryFeignService {

	@RequestMapping(value = "softCategory/searchSoftmgrCategory", method = RequestMethod.GET)
	public DataGridObject<SoftmgrCategory> searchSoftmgrCategory(@RequestParam("searchCategoryId") Integer searchCategoryId,
			@RequestParam("page") Integer page, @RequestParam("rows") Integer rows);

	@RequestMapping(value = "softCategory/addSoftmgrCategory", method = RequestMethod.POST)
	public JSONObject addSoftmgrCategory(SoftmgrCategory softmgrCategory,
			@RequestParam("currentName") String currentName);

	@RequestMapping(value = "softCategory/editSoftmgrCategory", method = RequestMethod.POST)
	public JSONObject editSoftmgrCategory(SoftmgrCategory softmgrCategory,
			@RequestParam("currentName") String currentName);

	@RequestMapping(value = "softCategory/{id}/searchSoftmgrCategory", method = RequestMethod.GET)
	public JSONObject searchSoftmgrCategory(@PathVariable("id") Integer id);

	@RequestMapping(value = "softCategory/removeSoftmgrCategory", method = RequestMethod.POST)
	public JSONObject removeSoftmgrCategory(@RequestParam("id") Integer id);

	@RequestMapping(value = "softCategory/getSoftmgrCategorys", method = RequestMethod.GET)
	public String getSoftmgrCategorys();
}
